home *** CD-ROM | disk | FTP | other *** search
- #include "stdafx.h"
-
- cDisaster *disaster = 0;
-
- void cDisaster::make()
- {
- new cDisaster();
- }
-
- cDisaster::cDisaster()
- : cGameObject(cProperties::find_w_error("DISASTER"))
- {
- add((cList **)&disaster);
-
- set_sequence(0, TRUE);
-
- set_position(surface->w / 2, 0);
- }
-
- int cDisaster::control()
- {
- cGameObject::control();
-
- if (y2 < surface->start)
- set_position(surface->w / 2, y + (surface->start - y2));
-
- return TRUE;
- }
-